home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 2
/
LSD and 17bit Compendium Deluxe - Volume II.iso
/
a
/
prog
/
misc
/
xes120.lha
/
XES
/
REXX
/
Mode.xdme
< prev
next >
Wrap
Text File
|
1994-11-09
|
576b
|
18 lines
/* mode.xdme */
/* Selects the appropriate mode according to the file name */
arg name
dot = lastpos(".", name)
if dot ~= 0 then ext = substr(name, dot)
select
when pos(":S/",name) > 0 | left(name,2) = "S:" then "programming-mode"
when pos(":REXX/",name) > 0 | left(name,5) = "REXX:" then "arexx-mode"
when dot = 0 then "text-mode"
when ext = ".TXT" | ext = ".DOC" | ext = ".GUIDE" | ext = ".README" | ext = "DOK" then "text-mode"
when ext = ".C" | ext = ".CC" then "c-mode"
when ext = ".MAN" then "manual-mode"
otherwise "programming-mode"
end